package logic

import (
	"context"
	"gitee.com/A1001574000/feedback-rpc/feedback"
	"gitee.com/A1001574000/feedback-rpc/internal/svc"
	"gitee.com/A1001574000/feedback-rpc/server"

	"github.com/zeromicro/go-zero/core/logx"
)

type FeedbackImgLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewFeedbackImgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FeedbackImgLogic {
	return &FeedbackImgLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *FeedbackImgLogic) FeedbackImg(in *feedback.FeedbackImgRequest) (*feedback.FeedbackImgResponse, error) {
	server.InsertImg(in)
	return &feedback.FeedbackImgResponse{}, nil
}
